#include "../Include/SplitToolCppJieba.h"

const char * const DICT_PATH = "../Include/cppjieba/dict/jieba.dict.utf8";

const char * const HMM_PATH = "../Include/cppjieba/dict/hmm_model.utf8";

const char * const USER_DICT_PATH = "../Include/cppjieba/dict/user.dict.utf8";

const char* const IDF_PATH = "../Include/cppjieba/dict/idf.utf8";

const char* const STOP_WORD_PATH = "../Include/cppjieba/dict/stop_words.utf8";

SplitToolCppJieba::SplitToolCppJieba()
: _jieba(DICT_PATH, HMM_PATH, USER_DICT_PATH,IDF_PATH,STOP_WORD_PATH)
{

}

SplitToolCppJieba::~SplitToolCppJieba()
{

}

vector<string> SplitToolCppJieba::cut(const string & sentence)
{
    vector<string> words;
    _jieba.CutAll(sentence, words);
    return words;
}
